<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\WebHook
 *
 * @property int $id 主键ID
 * @property string $name 项目名称
 * @property string $description 项目说明
 * @property string $command 执行的命令
 * @property string $password 密码
 * @property string $token 验证token
 * @property int $type 项目类型 1 gitree 2 github 3 coding
 * @property string $allow_ips 允许的IP信息，多个通过，区分
 * @property int $status 状态 1 开启 2 关闭
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook whereAllowIps($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook whereCommand($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook whereDescription($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook wherePassword($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook whereToken($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook whereUpdatedAt($value)
 * @mixin \Eloquent
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\WebHook query()
 */
class WebHook extends Model
{
    protected $table      = 'web_hooks';
    protected $primaryKey = 'id';
    public    $columns    = [
        'id',
        'name',
        'description',
        'command',
        'password',
        'token',
        'type',
        'allow_ips',
        'status',
        'created_at',
        'updated_at',
    ];

    protected $guarded = ['id'];
}